package com.example.dto.request.community;

import com.example.dto.request.group.InsertGroup;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;

/**
 * @author LeXin Huang
 * @date 2021年04月15日 11:43
 */
@Data
public class DynamicCommentRequestDTO {
    @NotNull(message = "缺少评论内容参数!", groups = {InsertGroup.class})
    @Length(min = 1, message = "评论内容不能为空!", groups = {InsertGroup.class})
    @Length(max = 500, message = "您输入的内容太多了, 请稍后再试!", groups = {InsertGroup.class})
    @ApiModelProperty(value = "评论内容")
    private String comment;

    private Integer userId;

    private Integer dynamicId;

}
